package com.xjh.utils.exception;

/**
 * @Author:XuJianHua
 * @Date:2022/12/30
 * @Description:
 */
public class MessageException extends RuntimeException {
    private static final long serialVersionUID = -6552875986668936643L;
    private final String code;

    public MessageException(String message) {
        super(message);
        this.code = "500";
    }

    public MessageException(String message, String code) {
        super(message);
        this.code = code;
    }

    public String getCode() {
        return this.code;
    }
}
